const baseurl='http://e.ludir.cn/api/hkzf/public/'

function axios(url,data={},method='') {
	return new	Promise((resolve,reject)=>{
		uni.request({
			url:baseurl+url,
			data,
			method,
			header:{Token:'tokenstr'},
			success(res){
				resolve(res)
			},
			fail(e){
				reject(e)
			}
			
		})
	})
}

export default{
	get(url,data){
		return axios(url,data,'get')
	},
	post(url,data){
		return axios(url,data,'post')
	}
}